texthandle: Remove knowledge about window borders
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 11 Jun 2015 15:10:54 +0000 (17:10 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 11 Jun 2015 15:14:23 +0000 (17:14 +0200)
We need to expand beyond these if necessary, so don't artificially
limit things here.

gtk/gtktexthandle.c

index 231c4f45f6aeb200663a11a7ce445ab00d435f17..adda5d93d2c0f6623cf66bbd65a71a885f840fb5 100644 (file)
@@ -373,7 +373,6 @@ _gtk_text_handle_update (GtkTextHandle         *handle,
       cairo_rectangle_int_t rect;
       gint width, height;
       GtkWidget *window;
-      GtkBorder shadow;
       GtkAllocation alloc;
       gint w, h;
 
@@ -412,12 +411,7 @@ _gtk_text_handle_update (GtkTextHandle         *handle,
        * knowledge about how popover_get_rect() works.
        */
 
-      _gtk_window_get_shadow_width (GTK_WINDOW (window), &shadow);
       gtk_widget_get_allocation (window, &alloc);
-      alloc.x += shadow.left;
-      alloc.y += shadow.top;
-      alloc.width -= shadow.left + shadow.right;
-      alloc.height -= shadow.top + shadow.bottom;
 
       w = width + border->left + border->right;
       h = height + border->top + border->bottom;